<include file="Public/common" />
<block>
    <link rel="stylesheet" href="__STATIC__/layui/css/layui.css"  media="all">
    <style>
        th{text-align: center;}
        .form-group{margin-left:20px;}
    </style>
</block>
<block name="content">
    <div class="page-header"><h1>首页 &gt;系统设置 > 操作日志</h1></div>


    <table class="table table-striped table-bordered table-hover table-condensed text-center">
        <thead>
        <tr>
            <th class="filtrate_1  col-md-1" >ID <!--<input type="checkbox" class="checkAll">--></th>
            <th class="filtrate_2  col-md-5" >操作内容</th>
            <th class="filtrate_3 col-md-2" >操作时间</th>
            <th class="filtrate_4 col-md-2" >操作人</th>
            <th class="filtrate_5 col-md-2"  >操作IP</th>
        </tr>
        </thead>
        <tbody>
        <volist name="list" id="vo">
            <tr >
                <td class="filtrate_1 col-md-1" >{$vo.id}</td>
                <td class="filtrate_2 col-md-5">{$vo.log_content}</td>
                <td class="filtrate_3 col-md-2">{$vo.log_time|date="Y-m-d H:i:s",###}</td>
                <td class="filtrate_4 col-md-2">{$vo.inputer_name}</td>
                <td class="filtrate_5 col-md-2">{$vo.log_ip}</td>
            </tr>
        </volist>

        <tr>
            <td colspan="9">
                <!--分页样式-->
                <ul class="pagination">
                    {$show}
                </ul>
            </td>
        </tr>
        </tbody>
    </table>

</block>
<block name="js">
    <script src=""></script>
    <script src="__STATIC__/layui/layui.all.js"></script>
    <script src="__STATIC__/layui/layui.js"></script>
    <script>
        /**
         * 打开订单详情页面
         * @param  {[int]}    orderId     [订单id]
         */

        //筛选显示
        $('body').on('change','.filtrate',function () {
            var id=$(this).val();
            if($(this).is(':checked')){
                $('.filtrate_'+id).show();
            }else{
                $('.filtrate_'+id).hide();
            }
        });


        layui.use('laydate', function() {
            var laydate = layui.laydate;
            //常规用法
            laydate.render({
                elem: '#start_time'
            });
            laydate.render({
                elem: '#end_time'
            });
        })

        /**
         *订单详情
         * @param orderId
         */

        function openDetail(orderId){
            layer.open({
                type: 2,
                offset:20,
                area: ['90%','90%'],
                title: '订单详情',
                content: '{:U("Orders/detail")}',
            })
        }
    </script>
</block>
